import request from '@/router/axios';
import serviceList from '@/config/serviceList'
import {baseURL} from '@/api/common';

const {aihumanCore} = serviceList

export const getPageList = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aimetaRoomChatRecord/getPageList`,
    method: 'post',
    data
  })
}
export const deleteLogBatch = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aimetaRoomChatRecord/deleteBatch`,
    method: 'post',
    data
  })
}
export const getUeStatus = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aiHumanUe/getUeStatus`,
    method: 'post',
    data
  })
}
export const closeUe = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aiHumanUe/closeUe`,
    method: 'post',
    data
  })
}
export const restartUEServer = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aiHumanUe/restartUEServer`,
    method: 'post',
    data
  })
}
export const get2DServerInfo = () => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aiHuman2d/getServerInfo`,
    method: 'post',
    data:{}
  })
}
export const resourceRelease = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aiHuman2d/resourceRelease`,
    method: 'post',
    data
  })
}
export const getConversationPageList = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aimetaRoomChatRecord/getConversationPageList`,
    method: 'post',
    data
  })
}
